import { createRouter, createWebHistory } from "vue-router";
import login from "@/views/home/login.vue";
import a1 from "@/views/home/a1.vue";
import a2 from "@/views/home/a2.vue";
import a3 from "@/views/home/a3.vue";
import a4 from "@/views/home/a4.vue";
import searchView from "@/views/search/index.vue";
const router = createRouter({
  history: createWebHistory(),
  routes: [
    { path: "/", redirect: "/home/index" },
    {
      path: "/login",
      name: "login",
      component: login,
      children: [
        { path: "a1", name: "a1", component: a1 },
        { path: "a2", name: "a2", component: a2 },
        { path: "a3", name: "a3", component: a3 },
        { path: "a4", name: "a4", component: a4 },
      ],
    },
    { path: "/search", name: "search", component: searchView },
  ],
});
export default router;
